home *** CD-ROM | disk | FTP | other *** search
/ Network CD 2 / Network CD - Volume 2.iso / programs / dopus / arexx_scripts / dopusutils / docs / multilzh.doc < prev    next >
Encoding:
Text File  |  1991-10-14  |  2.5 KB  |  49 lines

  1.  
  2. MultiLZH1.dopus and MultiLZH2.dopus are the result of a recurrent need: to
  3. archive a bunch of files from different disks or directories to a single
  4. file. While waiting for all this to be accomplished, DOpus will be "busy"
  5. and not available for other uses. Hence, the MultiLZH scripts were called
  6. into being. They will allow you to select a bunch of files from a variety of
  7. disks or directories, then quietly multi-task in the background while they
  8. perform the actual archiving.
  9.  
  10. They work in 2 parts, building the filename list, and then in the second
  11. program, processing that list and archiving the files.
  12.  
  13. I have the two scripts assigned to the same button gadget, selectable with
  14. both right and left mouse buttons:
  15. Left button -  Name: MultiLZH, Function: REXX:MULTILZH1.DOPUS, run async.
  16. Right button - Name: CREATE, Function: REXX:MULTILZH2.DOPUS, run async. 
  17.  
  18. MultiLZH1.dopus builds the filename list, and you can keep selecting files
  19. from different disks and directories until you get all that you want. You
  20. don't have to worry about taking files from multiple floppies, the script
  21. will ask for them back again when it needs them.
  22.  
  23. Once you have selected all the files you want, you can call the second
  24. script to actually perform the archiving function. The output file will be
  25. created in the currently selected directory, and you will be prompted for
  26. the filename.
  27.  
  28. Note that while the scripts will handle recursive directories, the number of
  29. files within those directories are not counted, I just use the * option to
  30. grab them all. If you want an accurate count, enter the directories and
  31. select all the files within it, not just the directory itself.
  32.  
  33. Note that the filelist is built up in a file called RAM:infiles.txt, and
  34. then after it is all processed, that temporary text file is erased. Also,
  35. the program LHARC is used to perform the archiving, and it is copied into
  36. RAM: before the archiving begins. If you're low on ram, this might cause a
  37. problem. Once the script is finished, RAM: is cleaned up again.
  38.  
  39. If you need to abort the file selecting process and totally start over, you
  40. must manually delete the file RAM:infiles.txt, or your new list will be
  41. added to the original list. This file is automatically deleted when the
  42. scripts complete, you only have to delete it yourself if you want to abort
  43. before it is finished.
  44.  
  45. While you may not have a particular need for this type of use, the scripts
  46. make good examples of how to snatch filenames from DOpus into your own AREXX
  47. scripts for whatever you want, as well as how to send messages back to
  48. DOpus for user display.
  49.